package com.zhenwei.zscm.common.base;

import com.zhenwei.zscm.common.annotations.Query;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class BaseQueryVO {
    @NotNull(message = "分页索引不能为空", groups = { Query.class })
    @Min(value = 1, message = "分页索引最小为1", groups = { Query.class })
    private Integer pageNo;
    @NotNull(message = "分页大小不能为空", groups = { Query.class })
    @Min(value = 5, message = "分页大小最小为5", groups = { Query.class })
    @Max(value = 999, message = "分页大小最大为999", groups = { Query.class })
    private Integer pageSize;
    private Long totalCount;
}
